{template 'header'}

<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp; »&nbsp; <a href="{url('buy/index')}">二手</a>
</div>
<!--当前位置 end-->

<!--主体部分-->
<div class="main layout960">
<!--推荐属性-->
<div class="main-head-blue">
	<h2>二手</h2>
	<a href="{url('member/my')}?mid={$moduleid}&action=add">发布二手信息</a>
</div>
<!--main-body-border start-->
<div class="main-body border">
<h4>所有信息</h4>
<!--cat-property start-->
<div class="cat-property">
	{template 'cat_cats', 'filter'}
	{template 'cat_type', 'filter'}
	{template 'car_level', 'filter'}
	{template 'car_brand', 'filter'}
	{template 'car_car', 'filter'}
	{template 'car_model', 'filter'}
	{template 'cat_area', 'filter'}
</div>
<!--cat-property end-->
<!--{if $catid||$typeid!=99 || $autoFilter|| $areaid}-->
{if $catid}
{template 'sel_cat', 'filter'}
{/if}
{if $filter[typeid]}
{template 'sel_type', 'filter'}
{/if}
{if $autoFilter}
{template 'sel_car', 'filter'}
{/if}
{if $areaid}
{template 'sel_area', 'filter'}
{/if}
<!--{/if}-->
<!--过滤-->
<div class="filter fn-clear">
	<div class="filter-hd fn-clear">
		<h3 class="fn-left">所有信息</h3>
        <div class="page-top fn-right fn-clear">
            <div class="fn-left">当前共有<span>{if $items}{$items}{else}0{/if}</span>信息</div>
            {if $items}
            <span>{php echo $do->getPn()->getPage()}/{php echo $do->getPn()->getPages()}</span>
            {php echo $do->getPn()->getPrev()}
            {php echo $do->getPn()->getNext()}
            {/if}
        </div>
		<form class="fn-right" id="filter-search" action="?" >
			<label for="keyword">关键字：</label>
			<input type="hidden" name="catid" value="{$catid}" class="serch-text">
			<input type="hidden" name="areaid" value="{$areaid}" class="serch-text">
			<input type="hidden" name="typeid" value="{$typeid}" class="serch-text">
			<input type="hidden" name="order" value="{$order}" class="serch-text">
			<input id="keyword" class="search-input" type="text"  name="kw" value="{$kw}" />
			<button type="submit">确定</button>
		</form>
	</div>
</div>
<!--过滤 end-->
<!--搜索结果-->
<div class="layout-inner fn-clear">
	<div class="layout-inner-1of2 fn-left">
		<ul class="result-list">
			<!--{if $tags}-->
			<!--{loop $tags $i $t}-->
			<li class="fn-clear">
				<img {if $t['thumb']} src="{$t['thumb']}" {else}src="{CSSIMG_URL}common/noimage100x100.jpg"{/if} width="100" height="100" alt="{$t['alt']}" />
				<div class="result-desc fn-left">
					<h3><a href="{url('buy/show', 'itemid='.$t['itemid'])}" target="_blank">{$t[title]}</a></h3>
					<p class="text-ellipsis">{$t[introduce]}</p>
					<p class="address">[{area_pos($t[areaid],'')}]</p>
					<!--{if get_user($t['username'], 'username', 'groupid')>=6}-->
					{$t['company']}
					<!--{else}-->
					{$t['company']}
					<!--{/if}-->
					{Im::web($t[username])}
				</div>
			</li>
			<!--{/loop}-->
			<!--{else}-->
			<!--{template 'noresult', 'message'}-->
			<!--{/if}-->
		</ul>
		{php $total = $items}
		{php $pn = $do->getPn()}
		{template 'pager', 'inc'}
	</div>
	<div class="fn-right">
	<iframe src="{SITE_URL}extend/fragment.php?modules=buy&psize=5"  scrolling="no" frameborder="0" height="468"></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=cooperation&psize=10&city_order={$city_order}"  scrolling="no" frameborder="0" height="303"></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=sell&psize=5"  scrolling="no" frameborder="0" height="468"></iframe>
	<iframe src="{SITE_URL}extend/fragment.php?modules=pic&psize=6"  scrolling="no" frameborder="0" height="392"></iframe>
	</div>
	<!--2of2 end-->
</div>
<!--搜索结果 end-->
</div>
<!--main-body-border end-->
</div>
<!--主体部分 end-->
{template 'footer'}
